using System;
using System.ComponentModel.DataAnnotations;

namespace MES_workbench.Domian.Entities
{
    /// <summary>
    /// 通知公告 Notice
    /// </summary>
    public class Notice
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public int NoticeId { get; set; }

        /// <summary>
        /// 公告内容。如：库存超阈值提醒内容，“若有撤单通知”
        /// </summary>
        public string? NoticeContent { get; set; }

        /// <summary>
        /// 用户接收公告的时间，精确到秒
        /// </summary>
        public DateTime ReceiveTime { get; set; }

        /// <summary>
        /// false 未删除，true 已删除（软删除）
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
